package cn.com.surker.sale.dao;

import cn.com.surker.sale.entity.SaleClient;
import cn.com.surker.sale.entity.SaleClientOrg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 销售客户站点关联表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-05-27
 */
public interface SaleClientOrgDao extends BaseMapper<SaleClientOrg> {

    /**
     * 根据客户ID 查询关联信息
     * @param clientId
     * @param orgId
     * @return
     */
	SaleClientOrg findByOrg(Long clientId, Long orgId, Integer status);

	/**
	 * 查询关联和未关联的站点
	 *
	 * @param clientId
	 * @return
	 */
	List<SaleClientOrg> linkOrgs(Long clientId);
}
